<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<!--[if lte IE 6]></base><![endif]-->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="keywords"
			content="学生综合信息管理平台,学生,综合,信息,管理,管理平台,学生综合,综合信息,学生平台,广东科学技术职业学院,科干,管理平台,学生信息管理,信息管理平台,学生信息网站,学生信息管理网站,科学技术,广科,广科院,广科院学生信息管理,广科院学生综合信息" />
		<title>学生综合信息管理平台</title>
		<link href="images/logo-copy.ico" rel="shortcut icon"
			type="image/x-icon" />
		<link href="css/menu.css" rel="stylesheet" type="text/css" />
		<link href="css/index.css" rel="stylesheet" type="text/css" />
		<link href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet"
			type="text/css" />
		<link href="css/paging.css" rel="stylesheet" type="text/css" />
		<script language="javascript" type="text/javascript"
			src="javascript/jquery-1.6.4.js">
</script>
		<script language="javascript" type="text/javascript"
			src="javascript/jquery-ui-1.8.16.custom.min.js">
</script>
		<script language="javascript" type="text/javascript"
			src="javascript/jquery.bgiframe.js">
</script>
		<script type='text/javascript' src='dwr/interface/loginService.js'>
</script>
		<script type='text/javascript' src='dwr/engine.js'>
</script>
		<script type='text/javascript' src='dwr/util.js'>
</script>
		<script type='text/javascript' src='dwr/interface/fillDataService.js'>
</script>
		<script type='text/javascript' src='dwr/interface/attendanceAction.js'>
</script>
		<script language="javascript" type="text/javascript"
			src="javascript/common.js" charset="GBK">
</script>
		<script src="javascript/pageInfo.js" type="text/javascript">
</script>
		<script language="javascript" type="text/javascript">

var globalGrade, globalProfession, globalClass, globalAttend, globalOrderType;

var allAttendanceRecordVo = new JsMap();//存放所有学生的考勤详情

$(function() {
	$("#resultDiv").hide();
	$("#gradeId").get(0).selectedIndex = 0;
	$("#professionId").get(0).selectedIndex = 0;
	$("#classId").get(0).selectedIndex = 0;
	$("#isAttendId").get(0).selectedIndex = 0;
	$("#orderTypeId").get(0).selectedIndex = 0;
	//填充年级、专业、班级下拉菜单数据
	fillData($("#gradeId").val(), $("#professionId").val(), $("#classId").val());
	attendanceAction.getPageInfo(function(data) {
		pageInfo = data;
	});
	//限制文本框只能输入 数字
	checkNumberInput($("#lateId"));
	checkNumberInput($("#leaveEarlyId"));
	checkNumberInput($("#truancyId"));
	checkNumberInput($("#leaveId"));

	checkNumberInput($("#weekIds"));
	checkNumberInput($("#lateIds"));
	checkNumberInput($("#leaveEarlyIds"));
	checkNumberInput($("#truancyIds"));
	checkNumberInput($("#leaveIds"));

});
/*获取学生综合考勤情况*/
function jqueryAttendanceRecord() {

	globalGrade = evalDwrData($("#gradeId").val());

	globalProfession = evalDwrData($("#professionId").val());

	globalClass = evalDwrData($("#classId").val());

	globalAttend = $("#isAttendId").val();

	globalOrderType = $("#orderTypeId").val();
	executeQuery(attendanceAction.getAttendStuListAll, [ globalGrade,
			globalProfession, globalClass, globalAttend, globalOrderType,
			callBack ]);

}

function callBack(data) {

	//alert(data.pageInfo)
	var page = data.pageInfo;
	if (!page) {
		alert("出错了！请重试");
		return;
	}
	initPage(page.totalPage, page.pageIndex, page.pageSize, page.totalRec);
	fillTableData(data.svList);

}
//executeQuery(index, size, fun2);
function fillTableData(data) {
	//alert(data.length);
	$("table#resultTable tr:gt(0)").remove();//清除页面已有的信息
	$("#waitDiv").show();
	if (data == null || data.length == 0) {
		$("#waitDiv").hide();
		alert("数据库中取不到任何数据，请确认查询条件！！！");
		return;
	}

	for ( var i = 0; i < data.length; i++) {
		var studentVo = data[i];
		var index = i + 1;//序号
		var classNames = studentVo.className;//班级名称
		var studentNumber = studentVo.studentNumber;//学号
		var studentName = studentVo.studentName;//学生名称
		var remark = studentVo.remark;//备注
		var attendanceRecordVo = studentVo.attendanceRecordVo;//考勤记录
		allAttendanceRecordVo.put(studentNumber, attendanceRecordVo);// JsMap对象，实现MAP功能（key为学号，value为考勤记录）

		//alert(attendanceRecordVo);

		var lateCount = attendanceRecordVo.lateCount;//迟到次数
		var leaveCount = attendanceRecordVo.leaveCount;//请假次数
		var leaveEarlyCount = attendanceRecordVo.leaveEarlyCount;//早退次数
		var truancyCount = attendanceRecordVo.truancyCount;//旷课次数
		//alert(truancyCount);

		var totalTruancyCount = attendanceRecordVo.totalTruancyCount;//旷课总数(3节迟到算一节旷课)

		//alert("序号:"+index+",班级名称:"+className+",学生名称:"+studentName+",学号:"+studentNumber+",迟到次数:"+lateCount+",旷课次数:"+truancyCount+",早退次数:"+leaveEarlyCount+",请假次数:"+leaveCount+",备注:"+remark);

		var tr = '<tr> <td name="table_index">'
				+ index
				+ '</td> <td>'
				+ classNames
				+ '</td> <td>'
				+ studentNumber
				+ '</td> <td>'
				+ studentName
				+ '</td> <td>'
				+ lateCount
				+ '</td> <td>'
				+ truancyCount
				+ '</td> <td>'
				+ leaveEarlyCount
				+ '</td> <td>'
				+ leaveCount
				+ '</td> <td>'
				+ remark
				+ '</td>'
				+ '<td><input type="button" name="button" value="简要信息" onclick="studentBriefInfo(\''
				+ studentNumber
				+ '\')"/>&nbsp;'
				+ '<input type="button" name="button" value="考情明细" onclick="attendanceDetailInfo(\''
				+ classNames + '\',\'' + studentNumber + '\',\'' + studentName
				+ '\')" /></td></tr>';
		$("#resultTable").append(tr);
	}
	$("#waitDiv").hide();
	$("#resultDiv").show();
}

/*JsMap对象，实现MAP功能（key为学号，value为考勤记录）*/
function getAttendanceRecordVoByStudentNumber(studentNumber) {
	return allAttendanceRecordVo.get(studentNumber);
}

/*----学生简要信息----*/
function studentBriefInfo(stuNumber) {
	//alert(stuNumber);
	attendanceAction.getStuDetailById("\'" + stuNumber + "\'", function(data) {
		//alert(stuNumber);
			//alert(data);
			var studentSex = data.sex == true ? "男" : "女";
			$("#stuClass").val(data.className);
			$("#stuNumber").val(data.studentNumber);
			$("#stuName").val(data.studentName);
			$("#stuSex").val(studentSex);
			$("#stuDorm").val(data.dormNumber);

			$("#stuMobile").val(data.mobile);
			$("#stuqq").val(data.qq);
			$("#stuEmail").val(data.email);
			$("#studentBriefInfoDialog").show();
			var divHeight = $("#studentBriefInfoDialog").height() + 120;
			$("#stuBriefInfoDialog").dialog( {
				modal : true,
				width : 800,
				height : 210,
				buttons : {
					"学生详细信息" : function() {
						/*--跳转到 学生个人详细页-*/
					},
					"关闭" : function() {
						$(this).dialog("close");
					}
				}
			});
		});
}
/*----学生详细信息----*/
/*function studentBriefInfo(stuNumber) {

 }*/
/*----考勤明细----*/
function attendanceDetailInfo(className, stuNumber, stuName) {
	//alert(className);
	//alert(stuNumber);
	//alert(stuName);
	var lateNum = 0;
	var leaveNum = 0;
	var leaveEarlyNum = 0;
	var truancyNum = 0;

	$("table#attendanceTable tr:gt(1)").remove();//清除页面已有的信息

	$("#attendanceDetail_className").html(className);
	$("#attendanceDetail_studentNumber").html(stuNumber);
	$("#attendanceDetail_studentName").html(stuName);

	var attendanceDetail = getAttendanceRecordVoByStudentNumber(stuNumber).attendanceRecordDetail;//调用JsMap对象，实现MAP功能（key为学号，value为考勤记录）
	for ( var week in attendanceDetail) {
		//alert(week+":"+attendanceDetail[week])
		//alert(week);
		var week = eval(week);
		var lateCounts = attendanceDetail[week].lateCount;//每周迟到次数
		lateNum = lateNum + lateCounts;
		var leaveCounts = attendanceDetail[week].leaveCount;//每周请假次数
		leaveNum = leaveCounts + leaveNum;
		var leaveEarlyCounts = attendanceDetail[week].leaveEarlyCount;//每周早退次数
		leaveEarlyNum = leaveEarlyNum + leaveEarlyCounts;
		var truancyCounts = attendanceDetail[week].truancyCount;//每周旷课次数
		truancyNum = truancyNum + truancyCounts;
		var totalTruancyCounts = attendanceDetail[week].totalTruancyCount;//总旷课次数
		//alert("周次"+week+"迟到次数:"+lateCounts+",旷课次数:"+truancyCounts+",早退次数:"+leaveEarlyCounts+",请假次数:"+leaveCounts);

		/*插入一行数据*/
		var tr = insertAttendance(stuNumber, week, lateCounts, leaveCounts,
				leaveEarlyCounts, truancyCounts, totalTruancyCounts);
		$("#attendanceTable").append(tr);
	}
	var totalTruancyNum = parseInt(truancyNum + lateNum / 3);
	//alert("迟到:"+lateNum+",早退:"+leaveEarlyNum+",请假:"+leaveNum+",旷课:"+truancyNum+',总旷课:'+totalTruancyNum);
	var tr = '<tr> <td>&nbsp;</td><td>'
			+ lateNum
			+ '</td><td>'
			+ truancyNum
			+ '</td><td>'
			+ leaveEarlyNum
			+ '</td><td>'
			+ leaveNum
			+ '</td><td>'
			+ totalTruancyNum
			+ '</td><td><input type="submit" value="增加" onclick="trAddBut(this,\''
			+ stuNumber + '\')" /></td><td>&nbsp;</td> </tr>';
	$("#attendanceTable").append(tr);
	//alert(attendanceDetail)
	$("#attendanceDetailDiv").show();
	var b = $("#attendanceDetailDiv").height() + 130;//获取高度
	$("#attendanceDetailDiv").dialog( {
		modal : true,
		width : 600,
		height : b,
		buttons : {
			"关闭" : function() {
				var a = confirm("确定取消？");
				if (a == true) {
					jqueryAttendanceRecord();
					$(this).dialog("close");
				} else {
					return false;
				}
			}
		}
	});
}

/*----删除考勤记录*/
function attendanceDel(x, studentNumber, week) {
	//alert(studentNumber);
	//alert(week);
	var week = eval(week);
	var a = confirm("确定删除？");
	if (a == true) {
		//$(x).parents("tr").remove();
		attendanceAction.deleteAttendanceRecord(studentNumber, week,
				function() {
					//$("#delete").remove();
				$(x).parents("tr").remove();
				alert("删除成功");
				$("#attendanceDetailDiv").dialog("close");
				jqueryAttendanceRecord();
			});

	} else {
		return false;
	}
}

/*------修改考勤记录----------*/
function attendanceRedacBut(x, studentNumber, week, lateCounts, leaveCounts,
		leaveEarlyCounts, truancyCounts) {
	$("#weekID").val(week);
	$("#lateID").val(lateCounts);
	$("#leaveID").val(leaveCounts);
	$("#leaveEarlyID").val(leaveEarlyCounts);
	$("#truancyID").val(truancyCounts);

	//alert("迟到:"+late+",早退:"+leaveEarly+",请假:"+leave+",旷课:"+truancy);
	var b = $("#attendanceDetailRedactDiv").height() + 120;// 获取高度
	$("#attendanceDetailRedactDiv").dialog(
			{
				modal : true,
				width : 400,
				height : b,
				buttons : {
					"修改" : function() {
						//alert("修改成功！");

					updateAttendanceBut(x, studentNumber, week, lateCounts,
							leaveCounts, leaveEarlyCounts, truancyCounts);
					$(this).dialog("close");
					$("#attendanceDetailDiv").dialog("close");
					jqueryAttendanceRecord();
				},
				"关闭" : function() {
					var a = confirm("确定取消？");
					if (a == true) {

						$(this).dialog("close");
					} else {
						return false;
					}
				}/*,

																				"重置" : function() {
																						--提交函数-
																				}*/
				}
			});
}

function updateAttendanceBut(x, studentNumber, week, lateCounts, leaveCounts,
		leaveEarlyCounts, truancyCounts) {
	var late = eval($("#lateID").val());
	var leaveEarly = eval($("#leaveEarlyID").val());
	var truancy = eval($("#truancyID").val());
	var leave = eval($("#leaveID").val());
	var week = eval(week);
	//alert("迟到:"+late+",早退:"+leaveEarly+",请假:"+leave+",旷课:"+truancy);
	if (lateCounts == late && leaveCounts == leave
			&& leaveEarlyCounts == leaveEarly && truancyCounts == truancy) {
		alert("数据没有如何的修改，请重新核对数据!");
	} else {

		attendanceAction.updateAttendanceRecord(studentNumber, week, late,
				leave, leaveEarly, truancy, function() {
					alert("修改成功");
					updateAttendanceData(x, studentNumber, week, late, leave,
							leaveEarly, truancy);
				});
		//$("#delete").remove();
	}
}

/*更新数据*/
function updateAttendanceData(x, stuNumber, week, lateCounts, leaveCounts,
		leaveEarlyCounts, truancyCounts) {

	//var lineNumber = $$("table#attendanceTable tr").length;
	var totalTruancyCounts = parseInt(truancyCounts + lateCounts / 3);//旷课总数(3节迟到算一节旷课)

	/*插入一行数据*/
	var tr = insertAttendance(stuNumber, week, lateCounts, leaveCounts,
			leaveEarlyCounts, truancyCounts, totalTruancyCounts);
	$(x).parents("tr").before(tr);//添加这一行之前
	$(x).parents("tr").remove();//删除以前的行
}

/*增加数据，提交给远程DWR*/
function attendanceIncreaseBut(x, studentNumber) {
	var isPoInteger = /^\s*[0-9]+\s*$/;//判断是否为数字
	var weeks = eval($("#weekIds").val());//周次
	var lates = eval($("#lateIds").val());//迟到次数
	var leaveEarlys = eval($("#leaveEarlyIds").val());//早退次数
	var truancys = eval($("#truancyIds").val());//旷课次数
	var leaves = eval($("#leaveIds").val());//请假次数 
	var totalTruancyCounts = parseInt(truancys + lates / 3);//旷课总数(3节迟到算一节旷课)
	//alert("周次" + weeks + ",迟到:" + lates + ",早退:" + leaveEarlys + ",请假:"+ leaves + ",旷课:" + truancys);
	if (weeks > 0 && isPoInteger.test(weeks) && isPoInteger.test(leaveEarlys)
			&& isPoInteger.test(lates) && isPoInteger.test(truancys)
			&& isPoInteger.test(leaves)) {
		//如果这一周已经存在数据就不能再添加，只能修改数据
		//alert("学号:"+studentNumber+",周次" + weeks + ",迟到:" + lates + ",早退:" + leaveEarlys + ",请假:"+ leaves + ",旷课:" + truancys);
		attendanceAction
				.isRepeatWeek(
						weeks,
						studentNumber,
						function(data) {
							/*alert(weeks);
							alert(studentNumber);
							alert(data);*/
							if (data) {
								attendanceAction
										.addAttendanceRecord(
												studentNumber,
												weeks,
												lates,
												leaveEarlys,
												truancys,
												leaves,
												function() {
													var lineNumber = $("table#attendanceTable tr").length - 2;
													var tr = $("table#attendanceTable tr:eq("
															+ lineNumber + ")");
													//插入一行数据
													var newTr = insertAttendance(
															studentNumber,
															weeks, lates,
															leaves,
															leaveEarlys,
															truancys,
															totalTruancyCounts);

													tr.after(newTr);
													alert("增加成功");
													jqueryAttendanceRecord();
												});
							} else {
								alert("您输入的周次已经存在，请再指定的周次修改数据，不能重新增加!");
							}
						});
	} else {
		alert("请输入数字，并核对数据!");
		return;
	}

}

/*插入一行数据*/
function insertAttendance(studentNumbers, week, lateCount, leaveCount,
		leaveEarlyCount, truancyCount, totalTruancyCount) {
	var tr = '<tr id="delete"> <td>'
			+ week
			+ '</td><td>'
			+ lateCount
			+ '</td><td>'
			+ truancyCount
			+ '</td><td>'
			+ leaveEarlyCount
			+ '</td><td>'
			+ leaveCount
			+ '</td><td>'
			+ totalTruancyCount
			+ '</td><td><input type="button" name="button" value="修改" onclick="attendanceRedacBut(this,\''
			+ studentNumbers
			+ '\',\''
			+ week
			+ '\',\''
			+ lateCount
			+ '\',\''
			+ leaveCount
			+ '\',\''
			+ leaveEarlyCount
			+ '\',\''
			+ truancyCount
			+ '\')"/>&nbsp;<input type="button" name="button" value="删除" onclick="attendanceDel(this,\''
			+ studentNumbers + '\',\'' + week + '\')"/> </td></tr>';

	return tr;
}
</script>
	</head>
	<body>
		<jsp:include page="../common/header.jsp"></jsp:include>

		<div id="menu">
			<div id="mainMenuDiv">
				<ul>
					<li>
						<a href="web/teacherSearch.jsp">教师信息管理</a>
					</li>
					<li>
						<a href="#">学生信息管理</a>
					</li>
					<li>
						<a href="web/studentInformationBasic.jsp">个人信息管理</a>
					</li>
					<li>
						<a href="web/logisticsSearchDorm.jsp">后勤管理</a>
					</li>
					<li>
						<a href="web/scoreSearch.jsp">成绩管理</a>
					</li>
					<li>
						<a href="web/attendanceSearch.jsp">考勤管理</a>
					</li>
				</ul>
			</div>

			<div id="minorMeun">
				<ul>
					<li>
						<a href="web/attendanceSearch.jsp">考勤查询</a>
					</li>
					<li>
						<a href="web/attendanceImport.jsp">考勤导入</a>
					</li>
				</ul>
			</div>

		</div>
		<div id="bodyDiv">
			<div id="bodyTitleDiv">
				<div id="breadcrumbDiv">
					当前位置
					<a href="web/index.jsp">：首页</a>
					<a href="web/logisticsSearchDorm.jsp">考勤管理</a>
					<a href="web/logisticsSearchDorm.jsp">考勤查询</a>
				</div>
			</div>
			<div id="bodyCentreDiv">
				<div id="conditionDiv">
					<table cellspacing="10">
						<tr>
							<td class="table_title">
								年&nbsp;&nbsp;&nbsp;&nbsp;级：
							</td>
							<td class="table_many">
								<select id="gradeId">
									<option value="">
										全部
									</option>
								</select>
							</td>
							<td class="table_title">
								专&nbsp;&nbsp;&nbsp;&nbsp;业：
							</td>
							<td class="table_many">
								<select id="professionId">
									<option value="">
										全部
									</option>
								</select>
							</td>
							<td class="table_title">
								班&nbsp;&nbsp;&nbsp;&nbsp;级：
							</td>
							<td class="table_many">
								<select id="classId">
									<option value="">
										全部
									</option>
								</select>
							</td>
							<td class="table_title">
								显示全勤：
							</td>
							<td class="table_many">
								<select id="isAttendId">
									<option value="">
										全部
									</option>
									<option value="yes">
										是
									</option>
									<option value="no">
										否
									</option>
								</select>
							</td>
							<td class="table_title">
								排&nbsp;&nbsp;&nbsp;&nbsp;序：
							</td>
							<td class="table_many">
								<select id="orderTypeId">
									<option value="">
										无
									</option>
									<option value="clazz">
										班级
									</option>
									<option value="stuNumber">
										学号
									</option>
								</select>
							</td>
						</tr>
					</table>
				</div>
				<div id="waitDiv" style="display: none;">
					<img src="images/loading1.gif" />
					查询中...
				</div>
				<div id="buttonDiv">
					<input id="queryId" name="" type="submit" value="查询"
						onclick="jqueryAttendanceRecord()" />
				</div>
				<div id="resultDiv">
					<div id="resultTitleDiv">
						查询结果：
						<div class="educeDiv">
							<input name="educe1" type="radio" value="" />
							本页
							<input name="educe1" type="radio" value="" />
							全部
							<input type="button" value="导出" />
						</div>
					</div>
					<div id="resultDataDiv">
						<table cellspacing="1" class="contentTable" id="resultTable">
							<tr>
								<th>
									序号
								</th>
								<th>
									班级
								</th>
								<th>
									学号
								</th>
								<th>
									姓名
								</th>

								<th>
									迟到
								</th>
								<th>
									旷课
								</th>
								<th>
									早退
								</th>
								<th>
									请假
								</th>
								<th>
									备注
								</th>
								<th width="25%">
									操作
								</th>
							</tr>

						</table>
						<!--上一页，下一页 开始-->
						<table width="100%" class="pagecss">
							<tr>
								<td align="left">
									<span id="AllPage">共几页/几条</span>
									<span id="setupNum">显示每页记录条数</span>
									<select id="setSize"
										onchange="ajaxChangeCount(this.options[this.options.selectedIndex].value)">
									</select>
								</td>
								<td align="right">
									<span id="Flexigrid_Bar"><a href="">上5页</a><span
										class="dan">1</span><a href="">2</a><a href="">3</a><a href="">下5页</a>
									</span>
									<span id="checkPage"><input type="text"
											style="width: 20px;" />&nbsp;页<a href="">GO</a> </span>
								</td>
							</tr>
						</table>
						<!--上一页，下一页 结束-->


					</div>
					<div id="stuBriefInfoDialog" style="display: none;">
						<table cellspacing="10" class="table_popup1">
							<tr>
								<th colspan="8">
									学生简要信息
								</th>
							</tr>
							<tr>
								<td class="table_title">
									班&nbsp;&nbsp;&nbsp;&nbsp;级：
								</td>
								<td class="table_readonly">
									<input id="stuClass" type="text" size="12" maxlength="12"
										readonly="readonly" />
								</td>
								<td class="table_title">
									学&nbsp;&nbsp;&nbsp;&nbsp;号：
								</td>
								<td class="table_readonly">
									<input id="stuNumber" type="text" size="12" maxlength="10"
										readonly="readonly" />
								</td>
								<td class="table_title">
									姓&nbsp;&nbsp;&nbsp;&nbsp;名：
								</td>
								<td class="table_readonly">
									<input id="stuName" type="text" size="12" maxlength="6"
										readonly="readonly" />
								</td>
								<td class="table_title">
									性&nbsp;&nbsp;&nbsp;&nbsp;别：
								</td>
								<td class="table_readonly">
									<input id="stuSex" type="text" size="12" maxlength="1"
										readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td class="table_title">
									宿&nbsp;&nbsp;&nbsp;&nbsp;舍：
								</td>
								<td class="table_readonly">
									<input id="stuDorm" type="text" size="12" maxlength="6"
										readonly="readonly" />
								</td>
								<td class="table_title">
									联系手机：
								</td>
								<td class="table_readonly">
									<input id="stuMobile" type="text" size="12" maxlength="11"
										readonly="readonly" />
								</td>
								<td class="table_title">
									Q&nbsp;&nbsp;Q：
								</td>
								<td class="table_readonly">
									<input id="stuqq" type="text" size="12" maxlength="12"
										readonly="readonly" />
								</td>
								<td class="table_title">
									E-mail：
								</td>
								<td class="table_readonly">
									<input id="stuemail" type="text" size="18" readonly="readonly" />
								</td>
							</tr>
						</table>
					</div>
					<div id="attendanceDetailDiv" style="display: none;">
						<table cellspacing="5" class="table_popup1" id="attendanceTable">
							<tr>
								<th colspan="8">
									班级：
									<samp id="attendanceDetail_className">
									</samp>
									<!--<input id="attendanceDetail_className" type="text" readonly="readonly" style="border: none;"/>-->
									&nbsp;&nbsp; 学号：
									<samp id="attendanceDetail_studentNumber">
									</samp>
									<!--<input id="attendanceDetail_studentNumber" type="text" readonly="readonly" style="border: none;"/>-->
									&nbsp;&nbsp; 姓名：
									<samp id="attendanceDetail_studentName">
									</samp>
									<!--<input id="attendanceDetail_studentName" type="text" readonly="readonly" style="border: none;"/>-->
								</th>
							</tr>
							<tr>
								<!--<th width="10%">
									学期
								</th>-->
								<th width="10%">
									周次
								</th>
								<th width="10%">
									迟到
								</th>
								<th width="10%">
									旷课
								</th>
								<th width="10%">
									早退
								</th>
								<th width="10%">
									请假
								</th>
								<th width="15%">
									旷课总计
								</th>
								<th width="25%">
									操作
								</th>
							</tr>

						</table>
					</div>
					<div id="attendanceDetailRedactDiv" title="修改"
						style="display: none;">
						<table border="0" cellspacing="10" class="table_popup1">
							<tr>
								<td>
									周&nbsp;&nbsp;&nbsp;&nbsp;次:
								</td>
								<td class="table_writing">
									<input id="weekID" type="text" readonly="readonly"
										style="border: none;" size="5" maxlength="3" />
								</td>
							</tr>
							<tr>
								<td>
									迟&nbsp;&nbsp;&nbsp;&nbsp;到:
								</td>
								<td class="table_writing1">
									<input id="lateID" type="text" size="5" maxlength="3" />
								</td>
								<td>
									早&nbsp;&nbsp;&nbsp;&nbsp;退:
								</td>
								<td class="table_writing2">
									<input id="leaveEarlyID" type="text" size="5" maxlength="3" />
								</td>
							</tr>
							<tr>
								<td>
									旷&nbsp;&nbsp;&nbsp;&nbsp;课:
								</td>
								<td class="table_writing3">
									<input id="truancyID" type="text" size="5" maxlength="3" />
								</td>
								<td>
									请&nbsp;&nbsp;&nbsp;&nbsp;假:
								</td>
								<td class="table_writing4">
									<input id="leaveID" type="text" size="5" maxlength="3" />
								</td>
							</tr>
						</table>
					</div>
					<div id="attendancIncreaseDiv" title="增加" style="display: none;">
						<table border="0" cellspacing="10" class="table_popup1">
							<tr>
								<td>
									周&nbsp;&nbsp;&nbsp;&nbsp;次:
								</td>
								<td class="table_writed1">
									<input id="weekIds" type="text" size="5" maxlength="3"
										value="0" />
								</td>
							</tr>
							<tr>
								<td>
									迟&nbsp;&nbsp;&nbsp;&nbsp;到:
								</td>
								<td class="table_writed2">
									<input id="lateIds" type="text" size="5" maxlength="3"
										value="0" />
								</td>
								<td>
									早&nbsp;&nbsp;&nbsp;&nbsp;退:
								</td>
								<td class="table_writed3">
									<input id="leaveEarlyIds" type="text" size="5" maxlength="3"
										value="0" />
								</td>
							</tr>
							<tr>
								<td>
									旷&nbsp;&nbsp;&nbsp;&nbsp;课:
								</td>
								<td class="table_writed4">
									<input id="truancyIds" type="text" size="5" maxlength="3"
										value="0" />
								</td>
								<td>
									请&nbsp;&nbsp;&nbsp;&nbsp;假:
								</td>
								<td class="table_writed5">
									<input id="leaveIds" type="text" size="5" maxlength="3"
										value="0" />
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>

		<jsp:include page="../common/footer.jsp"></jsp:include>
	</body>
</html>

